#!/home/bin/python
print "Content-Type: text/html\n"

print "<meta http-equiv='Content-Type' content='text/html; charset=euc-kr' />"

import cgi
import cgitb
import os
import time
import baseball

cgitb.enable()

if __name__ == '__main__':
    form = cgi.FieldStorage()

    if form.has_key("yy") and form.has_key("mm") and form.has_key("dd"):
        yy = int(form["yy"].value)
        mm = int(form["mm"].value)
        dd = int(form["dd"].value)
    else:
        today = time.localtime()
        yy, mm, dd = today[0:3]

    print baseball.meta_page(yy, mm, dd)

    

# vim:set filetype=python: 
